-- GENERATED SPELL FOR [Clockwork Sapper] --


function spell0_34193(pUnit, Event) --@Energy Sap,n/a--
pUnit:FullCastSpellOnTarget(64740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34193', 6000, 1)
end

function Sorts_34193(pUnit, Event)
local choix_sorts_34193 = math.random(0, 0)
if choix_sorts_34193 == 0 then
pUnit:RegisterEvent('spell0_34193', 1, 1)
end
end

function mob34193_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34193', math.random(1500, 3000), 1)
end

function mob34193_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34193_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34193_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34193, 1, 'mob34193_Action')
RegisterUnitEvent(34193, 2, 'mob34193_Leave')
RegisterUnitEvent(34193, 3, 'mob34193_Kill')
RegisterUnitEvent(34193, 4, 'mob34193_Die')
